import {extend} from "umi-request";
export const pData = () => process.env.NODE_ENV === 'production' ? platformConfig : platformConfigLocal
const request=extend({
    prefix:pData().httpUrl,
    timeout: 5000,
    headers: {'X-Requested-With': 'XMLHttpRequest'},
    errorHandler:(error) => {
        console.log('网络错误'+error)
    }
})
export default request